import { axios } from '@/utils/request'

/**
 * api接口列表
 */
const api = {
  list: '/erp_meixingtiyu/banner/list',
  add: '/erp_meixingtiyu/banner/add',
  edit: '/erp_meixingtiyu/banner/edit',
  del: '/erp_meixingtiyu/banner/del',
}

/**
 * 获取banner分页列表
 */
 export function list (params) {
  return axios({
    url: api.list,
    method: 'get',
    params
  })
}

/**
 * 添加banner
 */
export function add (params) {
  return axios({
    url: api.add,
    method: 'get',
    params
  })
}

/**
 * 编辑banner
 */
 export function edit (params) {
  return axios({
    url: api.edit,
    method: 'get',
    params
  })
}

/**
 * 删除指定id的banner
 */
 export function del (params) {
  return axios({
    url: api.del,
    method: 'get',
    params
  })
}